<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Document</title>
</head>
<body>
	<script type="text/javascript">
		/*function a(callback){      
		   	console.log("我是parent函数a！");   
		    console.log("调用回调函数");   
		    callback();   
		}   
		function b(){   
			console.log("我是回调函数b");  	  
		}   
		function c(){   
			console.log("我是回调函数c");     
		}   
		function test(){   
		   a(b);   
		   a(c);   
		} 
		test();*/


		/*function fn(num1,num2,demo){  
            return demo(num1,num2);  
        }   
        function test1(a,b){  
            return a+b;  
        } 
		var value = fn(10,5,test1); 
  
        console.log(value);*/



        var value = fn(10,5,function(a,b){
    		return a+b; 
    	})  
        function fn(num1,num2,demo){  
            return demo(num1,num2);  
        } 
        console.log(value);
	</script>
</body>
</html>